package com.jiang.mall.mallorder.config;

import org.springframework.context.annotation.Configuration;

@Configuration
public class MySeataConfig {

//    @Autowired
////    DataSourceProperties dataSourceProperties;
////
////    @Bean
////    public DataSource dataSource(DataSourceProperties dataSourceProperties) {
////        HikariDataSource dataSource = dataSourceProperties.initializeDataSourceBuilder().type(HikariDataSource.class).build();
////        if(StringUtils.hasText(dataSourceProperties.getName())) {
////            dataSource.setPoolName(dataSourceProperties.getName());
////        }
////        return new DataSourceProxy(dataSource);
////    }
}
